package com.kita.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kita.common.utils.PageUtils;
import com.kita.common.utils.Query;

import com.kita.house.dao.HouseBuyDao;
import com.kita.house.entity.HouseBuyEntity;
import com.kita.house.service.HouseBuyService;


@Service("houseBuyService")
public class HouseBuyServiceImpl extends ServiceImpl<HouseBuyDao, HouseBuyEntity> implements HouseBuyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HouseBuyEntity> page = this.page(
                new Query<HouseBuyEntity>().getPage(params),
                new QueryWrapper<HouseBuyEntity>()
        );

        return new PageUtils(page);
    }

}